---
title: "Opsgenie"
---

Elementary's Opsgenie integration enables sending alerts when data issues happen.

It is recommended to create [alert rules](/features/alerts-and-incidents/alert-rules) to filter and select the alerts that will create incidents in Opsgenei.


<Frame>
  <div className="dark:bg-white rounded-md p-1">
    <img
      src="https://res.cloudinary.com/diuctyblm/image/upload/v1719735768/Opsgenie_alerts_screenshot_wlkofn.png"
      alt="Opsgenie alerts screen"
    />
  </div>
</Frame>

<Frame>
  <div className="dark:bg-white rounded-md p-1">
    <img
      src="https://res.cloudinary.com/diuctyblm/image/upload/v1719735768/Opsgenie_alert_detail_zrqkb2.png"
      alt="Opsgenie alerts detail"
    />
  </div>
</Frame>

## Enabling Opsgenie alerts

### Create an Opsgenie API key

To create an `Opsgenie API key`, go to `Opsgenie` and follow the following steps:

- Create or select an `Opsgenie` team - this team will be responsible for alerts generated by Elementary.
- On the selected team go `Integrations` tab and press on `Add Integration`:
  - Select `API` and press `Add`
  - Select a name for the  `API integration` - “Elementary” for example
  - Make sure `Create` and `update access` are selected
  - Press on `Save Integration`
  - Copy the `API key` and provide it to Elementary UI.

### Add API key to an environment

1. Go to the `Environments` page on the sidebar.

2. Select an environment and click connect on the `Connect incident management tool` card (second card), and select `Opsgenie`.

<Frame>
  <div className="dark:bg-white rounded-md p-1">
    <img
      src="https://res.cloudinary.com/diuctyblm/image/upload/v1719556084/pagerduty_connect_environment_nyfv6z.png"
      alt="Connect incident management tool"
      width="500"
    />
  </div>
</Frame>

3. Fill the `API key` and select the `API URL` and save the integration:

<Frame>
  <div className="dark:bg-white rounded-md p-1">
    <img
      src="https://res.cloudinary.com/diuctyblm/image/upload/v1719735768/connect_opsgenie_jnftqf.png"
      alt="Enter Opsgenie API key"
    />
  </div>
</Frame>

4. `Opsgenie` will now be available as a destination on the [`alert rules`](/features/alerts-and-incidents/alert-rules) page. You can add rules to create Opsgenie incidents out of alerts who match your rule. 